package com.iss.card.view.account.shake;

import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RelativeLayout;

import com.iss.card.R;

public class ShakeFragment extends Fragment {

	private Activity mContext;
	private ShakeView mShakeView;

	public ShakeFragment() {

	}

	@Override
	public void onAttach(Activity activity) {
		super.onAttach(activity);
		mContext = activity;
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		
		RelativeLayout view = (RelativeLayout) inflater.inflate(R.layout.shake_content_view, null);
		mShakeView = new ShakeView(mContext, view);
//		mShakeView.start();
		return view;
	}

	/* (non-Javadoc)
	 * @see android.support.v4.app.Fragment#onDestroyView()
	 */
	@Override
	public void onDestroyView() {
		super.onDestroyView();
		mShakeView.onDestroy();
	}

}
